package javaClassExercise.newObjectStyle;

/**
 * Created by lomo.
 */
public class demo {
    private demo() {
        System.out.println("demo's constructor is called.");
    }

    private demo(int a, int b) {
        System.out.println(a+b);
    }

    private demo(String s, Integer i) {
        System.out.println(s + i);
    }

    public void printSth() {
        System.out.println("demo Class printSth...");
    }

    public void printSth(String s) {
        System.out.println(s);
    }

    private void printa() {
        System.out.println("private method called");
    }

    protected void printa(Integer a) {
        System.out.println(a);
    }
}
